﻿using System;
using System.Data;
using System.Configuration;

using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using System.ComponentModel;
namespace TA.Turbo.Controls
{
	/// <summary>
	/// Specifies options for outputting the <see cref="Grid"/> items.
	/// </summary>
	[TypeConverter(typeof(ExpandableObjectConverter))]
	public class GridItemOptions : StyledElement
	{
		/// <summary>
		/// Ctor.
		/// </summary>
		public GridItemOptions()
		{
			this.GridFirst = false;
			this.SameRow = false;
		}
		/// <summary>
		/// Show markup generated by Grid before markup generated by corresponding Repeater template.
		/// </summary>
		[NotifyParentProperty(true)]
		[DefaultValue(false)]
		public bool GridFirst { get; set; }
		/// <summary>
		/// Combine markup generated by Grid and Repeater template into the same row.
		/// </summary>
		[NotifyParentProperty(true)]
		[DefaultValue(false)]
		public bool SameRow { get; set; }
	}
}